import request from '@/utils/request'

// 查询家教申请列表
export function listTeacher_application(query) {
  return request({
    url: '/teacher_application/teacher_application/list',
    method: 'get',
    params: query
  })
}

// 查询家教申请详细
export function getTeacher_application(applicationId) {
  return request({
    url: '/teacher_application/teacher_application/' + applicationId,
    method: 'get'
  })
}

// 新增家教申请
export function addTeacher_application(data) {
  return request({
    url: '/teacher_application/teacher_application',
    method: 'post',
    data: data
  })
}

// 修改家教申请
export function updateTeacher_application(data) {
  return request({
    url: '/teacher_application/teacher_application',
    method: 'put',
    data: data
  })
}

// 删除家教申请
export function delTeacher_application(applicationId) {
  return request({
    url: '/teacher_application/teacher_application/' + applicationId,
    method: 'delete'
  })
}
